package com.example.mediaplayer;

import com.pixelduke.control.skin.FXSkins;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.IOException;

public class MainApplication extends Application {


    @Override
    public void start(Stage stage) throws IOException {

        FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("hello-view.fxml"));
        Scene scene = new Scene(fxmlLoader.load());
        scene.getStylesheets().add(FXSkins.getStylesheetURL());
        scene.getStylesheets().add(getClass().getResource("css/bootstrapfx.css").toExternalForm());
        scene.getStylesheets().add(getClass().getResource("css/listView.css").toExternalForm());
        stage.setTitle("MediaPlayer");
        stage.setResizable(false);
        stage.setScene(scene);
        //String s = getClass().getResource("img/icon.png").toExternalForm();
        //Image image = new Image(s);
        //stage.getIcons().add(image);
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }

    @Override
    public void stop() throws Exception {
        super.stop();
    }

}
